Skip to content

Clarify how does program terminate due to noexcept#297

Merged
changkun merged 1 commit into
changkun:masterfrom
frederick-vs-ja:noexcept-terminate
Jun 7, 2026
Merged

Clarify how does program terminate due to noexcept#297
changkun merged 1 commit into
changkun:masterfrom
frederick-vs-ja:noexcept-terminate

Conversation

@frederick-vs-ja

Copy link
Copy Markdown
Contributor

Description

Clarify that the compiler only inserts std::terminate calls, rather than terminate the program itself.

Change List

  • Resolve error content of noexept-caused termination

Reference


说明

澄清编译器只会插入 std::terminate 调用,而不会亲自终止程序。

变化箱单

  • 解决了关于 noexcept 导致程序终止的描述性错误

参考文献

@changkun changkun merged commit 243dd5d into changkun:master Jun 7, 2026
@changkun

changkun commented Jun 7, 2026

Copy link
Copy Markdown
Owner

Merged — thank you @frederick-vs-ja. The clarification that the compiler inserts a std::terminate() call on the exception-exit path (rather than "terminating the program itself") is precisely right, and the [except.spec]/5 reference is appreciated. 🙏

@changkun changkun mentioned this pull request Jun 7, 2026
31 tasks
@frederick-vs-ja frederick-vs-ja deleted the noexcept-terminate branch June 7, 2026 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants